package com.kiwi.nixu;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 如何计算两个单链表所代表的的数之和
 */
public class JiSuanTwoLinkListSum {

    public static void main(String[] args) {
        //String sumCount="8812507674,8812510842,8812514350,8812517928,8812521100,8812524527,8812528206,8812531514,8812534477,8812538020,8812541400";
        //List<String> list = Arrays.asList(sumCount.split(","));
        //for (int i = 0; i < list.size(); i++) {
        //    if(i==(list.size()-1)){
        //    }else{
        //        Long integer = Long.valueOf(list.get(i));
        //        Long integer1 = Long.valueOf(list.get(i+1));
        //        long chaSum=(integer1-integer)/10;
        //        System.out.println(chaSum);
        //    }
        //}
        //
        //
        //List<Long> list = new ArrayList<>();
        //try {
        //    BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\DELL1199\\Desktop\\log\\nginx_status.txt"));
        //    String str;
        //    int lineNum=0;
        //    int countLine=1;
        //    while ((str = in.readLine()) != null) {
        //        if(lineNum==3){
        //            System.out.println("第"+countLine+"行,"+str);
        //            list.add(Long.valueOf(str.split(" ")[2]));
        //            countLine++;
        //        }
        //        if(lineNum==4){
        //            lineNum=0;
        //        }else{
        //            lineNum++;
        //        }
        //    }
        //} catch (IOException e) {
        //
        //}
        //for (int i = 0; i < list.size(); i++) {
        //    if(i==(list.size()-1)){
        //    }else{
        //        Long integer = Long.valueOf(list.get(i));
        //        Long integer1 = Long.valueOf(list.get(i+1));
        //        long chaSum=(integer1-integer);
        //        System.out.println(chaSum);
        //    }
        //}

        //
        //ExecutorService executorService = Executors.newFixedThreadPool(10);
        //
        //executorService.submit(new Runnable() {
        //    @Override
        //    public void run() {
        //        System.out.println(1);
        //    }
        //});
        //
        //executorService.shutdownNow();
        //
        //if(executorService==null){
        //    System.out.println("shutdownNow之后executorService变成null");
        //}else{
        //    System.out.println("shutdownNow之后executorService变成不为null");
        //}


        String ss = "^((?!" + "gx,att,en".replace(",", "|") + ").)*$";
        System.out.println(ss);

        String ss11 = ".*(" + "gx,att,en".replace(",", "|") + ").*";
        System.out.println(ss11);


    }
}
